export const countFields = [
  {
    name: "count",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltAddFields = [
  {
    name: "dolt_add",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltResetFields = [
  {
    name: "dolt_reset",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltBranchFields = [
  {
    name: "dolt_branch",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltCheckoutFields = [
  {
    name: "dolt_checkout",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltCleanFields = [
  {
    name: "dolt_clean",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltCommitFields = [
  {
    name: "dolt_commit",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltSchemasFields = [
  {
    name: "type",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 256,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 256,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "fragment",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "extra",
    tableID: 0,
    columnID: 0,
    dataTypeID: 114,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "sql_mode",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 1024,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltDocsFields = [
  {
    name: "doc_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "doc_text",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltStatusFields = [
  {
    name: "table_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "staged",
    tableID: 0,
    columnID: 0,
    dataTypeID: 16,
    dataTypeSize: 1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "status",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltTagFields = [
  {
    name: "dolt_tag",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1009,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltTagsFields = [
  {
    name: "tag_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "tag_hash",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "tagger",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "email",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "date",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1114,
    dataTypeSize: 26,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "message",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const infoSchemaKeyColumnUsageFields = [
  {
    name: "CONSTRAINT_CATALOG",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "CONSTRAINT_SCHEMA",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "CONSTRAINT_NAME",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "TABLE_CATALOG",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "TABLE_SCHEMA",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "TABLE_NAME",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "COLUMN_NAME",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "ORDINAL_POSITION",
    tableID: 0,
    columnID: 0,
    dataTypeID: 26,
    dataTypeSize: 10,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "POSITION_IN_UNIQUE_CONSTRAINT",
    tableID: 0,
    columnID: 0,
    dataTypeID: 26,
    dataTypeSize: 10,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "REFERENCED_TABLE_SCHEMA",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "REFERENCED_TABLE_NAME",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "REFERENCED_COLUMN_NAME",
    tableID: 0,
    columnID: 0,
    dataTypeID: 1043,
    dataTypeSize: 192,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const schemaNameField = {
  name: "schema_name",
  tableID: 0,
  columnID: 0,
  dataTypeID: 1043,
  dataTypeSize: 256,
  dataTypeModifier: 68,
  format: "text",
};

export const pgTablesFields = [
  {
    name: "schemaname",
    tableID: 0,
    columnID: 0,
    dataTypeID: 19,
    dataTypeSize: 64,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "tablename",
    tableID: 0,
    columnID: 0,
    dataTypeID: 19,
    dataTypeSize: 64,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltDiffStatFields = [
  {
    name: "table_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "rows_unmodified",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "rows_added",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "rows_deleted",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "rows_modified",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "cells_added",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "cells_deleted",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "cells_modified",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "old_row_count",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "new_row_count",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "old_cell_count",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "new_cell_count",
    tableID: 0,
    columnID: 0,
    dataTypeID: 20,
    dataTypeSize: 20,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltDiffSummaryFields = [
  {
    name: "from_table_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "to_table_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "diff_type",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "data_change",
    tableID: 0,
    columnID: 0,
    dataTypeID: 21,
    dataTypeSize: 4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "schema_change",
    tableID: 0,
    columnID: 0,
    dataTypeID: 21,
    dataTypeSize: 4,
    dataTypeModifier: -1,
    format: "text",
  },
];

export const doltSchemaDiffFields = [
  {
    name: "from_table_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "to_table_name",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -1,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "from_create_statement",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
  {
    name: "to_create_statement",
    tableID: 0,
    columnID: 0,
    dataTypeID: 25,
    dataTypeSize: -4,
    dataTypeModifier: -1,
    format: "text",
  },
];
